requetData()
function requetData() {
    $.ajax({
        url:"/community/communitylist" ,
        dataType:"json",
        type:"get",
        success:function (data) {
            console.log(data)
            showData(data)
        }
    })
}

function showData(jsonObj) {
    var html = '<tr><th>游戏名称</th></tr>'
    for(var i = 0; i < jsonObj.length; i ++) {
        html = html + "<tr><td>"
        html = html + jsonObj[i].communityName
        html = html + "</td></tr>"
    }
    $('.table').html(html)
}